package com.wink.admin.common.exception;


/**
 * 自定义异常
 *
 * @author wink
 * @date 2020/11/16 17:57:36
 */
public class CustomException extends RuntimeException {
    private Integer code;

    public CustomException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public CustomException(String message) {
        super(message);
    }

    public Integer getCode() {
        return code;
    }
}
